package com.game.autoTool.project.web.controller;

import com.game.autoTool.project.web.domain.entity.UserInfo;
import com.game.autoTool.project.web.domain.resp.Result;
import com.game.autoTool.project.web.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/userInfo")
public class UserInfoController {

    @Autowired
    private UserInfoService userInfoService;

    /**
     * 测试接口
     * @return
     */
    @GetMapping(value = "/getUserInfo")
    public Result<List<UserInfo>> getUserInfo() {
        return Result.succeed(userInfoService.getAllUsers());
    }

}
